package com.example.demo.service.impl;

import com.example.demo.mapper.PetsMapper;
import com.example.demo.pojo.Pets;
import com.example.demo.service.IPetsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PetsServiceImpl implements IPetsService {
	@Autowired
	PetsMapper petsMapper;

	@Override
	public List<Pets> findByID(Integer goodsID) {
		return petsMapper.findByID(goodsID);
	}
	@Override
	public  List<Pets>findAll()
	{
		return petsMapper.findAll();
	}

	@Override
	public List<Pets> findByName(String goodsName) {
		return petsMapper.findByName(goodsName);
	}

	@Override
	public List<Pets> findBySellerID(Integer sellerID) {return petsMapper.findBySellerID(sellerID);}
}
